<template>
  <div class="home-container">
    <div class="text-2xl text-fuchsia">Home</div>
    <div class="mobile-content">
      <h1 class="text-xl mb-4">Welcome to Mobile Home</h1>
      <div class="grid grid-cols-2 gap-4">
        <div v-for="(item, index) in menuItems" :key="index" class="menu-item p-4 bg-gray-100 rounded-lg shadow">
          <EcoIcon :icon="item.icon" class="text-2xl mb-2"></EcoIcon>
          <p>{{ item.title }}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts" name="Home">
import { ref } from 'vue'

const menuItems = ref([
  { title: 'Profile', icon: 'setting' },
  { title: 'Settings', icon: 'setting' },
  { title: 'Messages', icon: 'setting' },
  { title: 'Notifications', icon: 'setting' }
])
</script>

<style scoped>
.home-container {
  padding: 1rem;
}
.mobile-content {
  max-width: 100%;
  margin: 0 auto;
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
</style>
